package com.yhb.dao;

import com.yhb.model.ChannelFlow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlanActionMapper {
    int insertFlows(@Param("flows") List<ChannelFlow> flows,
                    @Param("dateString") String dateString,
                    @Param("planId") String planId,
                    @Param("userId") String userId,
                    @Param("localization") String localization);

    int updateExecutionId(@Param("dateString") String dateString,
                          @Param("executionId") String executionId,
                          @Param("flowId") String flowId);

    List<ChannelFlow> actions(@Param("dateString") String dateString,
                              @Param("planId") String planId);
}
